<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" async="" src="{{asset('./home/Scripts/shop0.js')}}"></script>
        <script async="" src="{{asset('./home/Scripts/shop1.js')}}"></script>
        <script async="async" src="{{asset('./home/Content/saved_resource.css')}}"></script>
        <meta charset="UTF-8">
        <title>我的购物车_国美在线</title>
        <link rel="stylesheet" type="text/css" href="{{asset('./home/Content/saved_resource(1).css')}}">
        <link rel="stylesheet" type="text/css" href="{{asset('./home/Content/saved_resource2).css')}}">
        <link rel="stylesheet" type="text/css" href="{{asset('./home/Content/saved_resource(3).css')}}">
        <link rel="stylesheet" type="text/css" href="{{asset('./home/Content/cart.min.css')}}">
		<script src="{{asset('home/Scripts/jquery-3.1.0.js')}}" type="text/javascript"></script>
    </head> 
    <body class="w990" data-page="cart">
        <iframe sandbox="allow-scripts" src="{{asset('./home/Scripts/cma.html')}}" style="display: none;"></iframe>
		<!--//头部为所有页面公有 包含登录注册 -->
		@include('home.include.header')
        <div id="gome-head" class="wbox">
            <div id="logo"><a data-code="public03001" href="{{url('home/index')}}">国美在线</a></div>
            <div id="head-title" style="color: rgb(51, 51, 51);">购物车</div>
            <div id="head-box"></div>
        </div>
        <!--gome_head -->
        <!--head-->
        <div class=" container"> 
            <div class="fl cart-main-notice" act-login-info="" style="display: none;">
                <i class="c-i notice_gray noticeicon"></i>
                部分商品的价格和库存可能因收货地址不同而变化，请以订单提交时的信息为准。
            </div>

            <!-- <div class="cart-login-tip fl"> -->
            <div class="cart-login-tip fl hide" act-not-login-info="" style="display: block;">
                您还没有登录！登录后购物车的商品将保存到您账号中。 
                <a act-user-login="" class="cart-login-btn" href="javascript:">
                    立即登录
                </a> 
            </div> 


        <div class="cart-lists">
			<div class="container"> 
                <div class="cart-main-header clearfix">   
                    <div class="cart-col-1">          
                        <div><input type="checkbox" checked="" style="display: none;"> </div>          
                    </div>  	
                    <div class="cart-col-2"></div>
					<!-- $page.site 主站 团购 抢购   style --> 
				</div>  
			</div>  
			<div class="container" act-list="">  
				<?php $price = 0; $num = 0;?>
				@foreach(session()->get("shoplist") as $shop)
				<div>            
					<div class="cart-shop-header">   
						<div class="cart-col-1">               
							<div>       
								<input type="checkbox" checked="" style="display: none;">      
							</div>                  
						</div>   
						<div class="cart-col-2">           
							<span style="background:#e3101e; color:#fff; padding:5px;">国美自营</span>&nbsp; 
						</div>   
					</div>     
					
					<div class="cart-shop-goods ">
						<!-- 促销分组列表 -->                          
						<!-- 单个促销分组 -->                                                    
						<!-- 自营促销 -->  
						<div class="cart-shop-info      cart-shop-goods-promotion      ">      
							<div class="cart-icon-notice">    满返     <b></b>    <i></i>   </div>   
							<!--促销提示语-->   活动商品已满2000.00元（<span style="color:#e6060e;">可返50.00元蓝券x1</span>）&nbsp;     
							<a href="http://coudan.gome.com.cn/?P847619" target="_blank">去凑单&nbsp;<span class="jt">&gt;</span></a>             
							<div class="cart-pomotion-summary">           
							<span class="ffyh">￥{{$shop->name}}</span>                
							</div>        
						</div>  
						<!-- /自营促销 -->                                               
						<!-- 本组商品列表 -->                            
						<div class="cart-shop-good clearfix cart-shop-good-checked cart-item-last">               
							<div class="cart-item-line"></div>     
							<div class="cart-col-1">         
								<div>      
									<input type="checkbox" name="good" data-title="{{$shop->name}}" style="display: none;">        
								</div>     
							</div>  
							<div class="cart-col-2">   
								<a href="" target="_blank">         
								<img src="../../../{{$shop->pic}}" alt="{{$shop->name}}">       
								</a>  
							</div>     
							<div class="fl">   
								<div class="clearfix">             
									<div style="" class="cart-col-3">     
										<div class="cart-good-name">            
											<abbr title="{{$shop->brief}}"><a href='{{url("home/mall/$shop->mid")}}' target="_blank">{{$shop->name}}</a></abbr>     
										</div>      
										<div class="cart-good-info clearfix"></div>                          
									</div>      
									<!--sales property vos -->           
									<span class="cart-col-salesPro">                        
										<div class="cart-good-pro">           
											<div class="cart-good-key" title="">颜色：</div>           
											<div class="cart-good-value" title="{{$shop->color}}">{{$shop->color}}</div>         
										</div><br>                               
										<div class="cart-good-pro">           
											<div class="cart-good-key" title="">版本：</div>           
											<div class="cart-good-value" title="{{$shop->brand}}">{{$shop->brand}}</div>         
										</div><br>                    
									</span>         
									<!--sales property vos -->    
									<div class="cart-col-4">     
										<div class="cart-good-real-price">{{$shop->price}}</div>                         
										<div class="cart-coupon cart-prom">         
											<div class="cart-coupon-trigger">促销优惠<i class="c-i cart-arrow arrowdown_red"></i></div>        
											<div class="cart-coupon-box" gui-popupbox="">           
												<div class="cart-box-arrow">          
													<i>◆</i><i class="cart-arrow-cover">◆</i>         
												</div>         
												<div class="cart-box-border" gui-popupbox-animate="">           
													<div class="cart-coupon-items border-none">           
														<form>                        
															<dl class="clearfix">             
																<dt><input type="radio" name="cart-coupon" checked="" data-default="true" value="P847619"></dt>
																<dd>{{$shop->activity}}</dd>
															</dl>                        
															<dl class="clearfix">             
																<dt><input type="radio" name="cart-coupon" value="noUse"></dt><dd>不使用活动优惠</dd>            
															</dl>                       
														</form>           
														<div class="cart-coupon-btns cart-box-group-a">            
															<a href="javascript:;" class="cart-btn cart-red-bg" >确认</a><a href="javascript:;" class="cart-btn">取消</a>           
														</div>          
													</div>          
												</div>         
											</div>       
										</div>                      
									</div>  
									
									<div class="cart-col-5"> 
										<div class="gui-count cart-count">                
											<a class="j-gACbtn" >-</a>
											<input type="text" name=m class="j-gACval" id="enterQty" name="{{$shop->mid}}" value="{{$shop->m}}">
											<a class="j-gACbtnA">+</a>
											<?php 
												$price += $shop->m * $shop->price;
												$num += $shop->m;
											?>
										</div>
									<script>
										$(function(){
											$(".j-gACbtn").click(function(){
												if($(".j-gACval").attr("value") > 1){
													n = $(".j-gACval").attr("value") - 1;
													$(".j-gACval").attr("value",n);
												}
											});
											$(".j-gACbtnA").click(function(){
												if($(".j-gACval").attr("value") < 20){
													n = parseInt($(".j-gACval").attr("value")) + 1;
													$(".j-gACval").attr("value",n);
												}	
											});
											$(".j-gACval").blur(function(){
												if($(this).val() > 20){
													$(this).val(20);
												}else if($(this).val() < 1){
													$(this).val(1);
												}
											});
										});
									</script>
									</div>    
									<div class="cart-col-6 "><div class="cart-good-amount">{{$shop->price}}</div></div>    
								</div>       
							</div>       
							<div class="cart-col-7">   
								<div class="cart-good-fun delfixed">    
								<a href="{{url('home/shop/del')}}/{{$shop->mid}}"  data-title="{{$shop->name}}" >删除</a>    
								</div>            
								<div class="cart-good-fun"><a href="javascript:">移入收藏夹</a></div>                
							</div>          
						</div>                         
						<!-- /本组商品列表 -->          
						<!-- /单个促销分组 -->                           
					</div>  
				</div>  
				@endforeach
			</div>  
			<div class="cart-bottom-wrap cart-bottom-fixed">   
				<div class="cart-bottom-info">       
					<div class="container">    
						<div class="cart-col-1">           
							<div>        
								<input type="checkbox" checked="" style="display: none;">      
							</div>               
						</div>    
						
						<div class="cart-col-2"></div>  
						<div class="cart-col-3">            
							<a href="{{url('home/shop/clear')}}" class="black del-goods" data-save="true">删除所有商品</a>               
						</div>     
						<div class="cart-col-4 cart-totle-price">已选
							<span class="cart-price-red" style="font-size:14px;font-weight:900;">{{$num}}</span>件商品
							<span class="white-space"></span>总共（不含运费）：
							<span class="cart-price-red cart-price-big ffyh" style="font-size:18px;font-weight:900;">￥{{$price}}</span><br>
							<!--已节省 优惠券可能要改逻辑<br> -->                                
							<span style="display:block;margin-left:-61px" class=""> 已节省： 
							<span class="ffyh">-￥</span>102.00 </span>         
							<span class="">返券：优惠券 X 1</span>                                   
						</div>     
						<div class="cart-col-5">           
							<a href="javascript:" act-init-order="" class="order-btn">       
								<span class="btn-normal" style="font-family:microsoft YaHei; font-size:16px;font-weight:bold;">去结算<em class="c-i arrowRight-white" style="margin-left:6px;"></em></span>           
							</a>          
						</div>    
					</div>  
				</div> 
			</div>
		</div>

        <div class="container cart-deleted" act-deleted-wrap="">
            <div class="cart-deleted-header">
                已删除商品，您可以重新购买或移入收藏夹：
            </div> 
            <div class="cart-deleted-content" act-deleted-list=""> 
            </div>
        </div> 

        <script type="tpl/text" id="confirm">
            <div class="window_out pr">
            <p class="clearfix">
            ${content}	
            </p>
            <div class="pt10 clearfix">
            <a href="javascript:" style="color:#ffffff" class="btn btn-primary btn-w83 fl" act-confirm-ok>${ok}</a> 
            <a href="javascript:" 
            style="margin-left:50px"
            class="btn btn-default btn-w83 fl"  
            act-confirm-cancel
            >${cancel}</a> 
            </div>
            <em class="c-i closebtn-new pabs close_window" act-confirm-cancel></em>	
            </div>
        </script>
        
        <script type="tpl/text" id="alert">
            <div class="window_out pr">
                <p class="clearfix cart-alert">${content}</p>
            <!--
            <div>
            <a href="javascript:" class="sub_btn sub_btn_ok s_color text-center change_sp" act-alert-ok>${ok}</a>  
            </div>
            -->
            <em class="c-i closebtn-new pabs close_window" act-alert-ok></em>	
            </div>
        </script> 

        <script type="tpl/text" id="arrival-notice">
            <div class="dialogBox TZ prevPopBox ifixed">
                <div class="close">
                    <a class="js-layerclose" href="javascript:;" act-close>╳</a>
                </div>
                <div>
                    <ul class="dialogTZ">
                    <!--
                        <li class="sicon">
                        </li> 
                        <li class="tit">
                            到货通知
                        </li>
                     -->
                        <li class="cart-arrival-notice-title">
                            <span>到货通知</span>商品到货后，我们会通过手机短信或邮件通知您 
                        </li>
                        <li class="inp">
                        <em class="pdtl-red">*</em>&nbsp;手机号码：
                            <input type="text" name="phoneno" maxlength="11" id="tell" /><span id="errorTell"></span>
                        </li>
                        <li class="inp">
                            <em class="pdtl-red">&nbsp;&nbsp;</em>&nbsp;邮箱地址：
                            <input type="text" maxlength="50" id="mail"  name="email" />
                            <span id="errorMail"></span>
                        </li>
                        <li class="add">
                            <input type="checkbox" id="chk" />
                            <label for="chk">同时移入收藏夹</label>
                        </li>
                        <li class="smt">
                            <a class="redlink" href="javascript:;" act-submit>确定</a>
                        </li>
                    </ul>
                </div>
            </div> 
        </script> 

        <script type="text/tpl" id="couponTpl">
            <div class="cart-box-item clearfix">
            <div class="cart-coupon-icon">
            <div class="cart-coupon-icon-inner">
            ￥${faceValue}
            </div> 
            </div>
            <div class="cart-coupon-text">
            <div class="cart-coupon-title">
            ${description}
            </div>
            <div class="cart-coupon-dsp">
            ${startDate}-${expirationDate}
            </div>
            </div>
            <a 
            class="cart-coupon-btn"
            act-add-coupon
            data-cpid="${couponNo}"
            data-aid="${id}"
            data-quantity="${quantity}"
            >
            领取
            </a>
            </div> 
        </script>
		<!--//页面共有尾部-->
		@include('home.include.footer')
		<script>
var $page = {
    site: "home"
    , name: "cart"
}
        </script>

        <script type="text/javascript">
			var dynSite = '', staSite = '', contextPath = '', imgServer = '', secureURL = '', pictureserver = '', cookieDomain = '', stageJsServer = '', stageImageServer = '', stageCssServer = '', cssserver = '', jsserver = '', protocol = '',versionData = '';
		</script>
		<script src="{{asset('./home/Content/saved_resource(4).css')}}"></script>
        <!--公共js-->
        <script src="{{asset('./home/Content/saved_resource(5).css')}}"></script>
        <!--购物车js-->
        <script src="{{asset('./home/Content/saved_resource(6).css')}}"></script>
        <!--其它外围部分-->

        <script src="{{asset('./home/Scripts/shop2.js')}}"></script>

        <script type="text/javascript" id="" src="{{asset('./home/Scripts/.js')}}"></script>
        <iframe width="0" height="0" frameborder="0" src=".{{asset('./home/Scripts/0.html')}}" style="width: 1px; border: 0px none; position: absolute; left: -100px; top: -100px; height: 1px;"></iframe>
        <iframe src="{{asset('./home/Scripts/b.html')}}" id="mv_cm" style="width: 1px; border: 0px; position: absolute; left: -100px; top: -100px; height: 1px;">
        </iframe>
    </body>
</html>